home *** CD-ROM | disk | FTP | other *** search
- Path: erich.triumf.ca!bennett
- From: bennett@erich.triumf.ca (P.Bennett)
- Newsgroups: comp.lang.c
- Subject: Re: why doesn't atof work properly ?
- Date: 4 Feb 1996 22:23 PST
- Organization: TRIUMF: Tri-University Meson Facility
- Distribution: world
- Message-ID: <4FEB199622232190@erich.triumf.ca>
- References: <4f0ivh$3g7e@yuma.ACNS.ColoState.EDU> <3FEB199617132831@erich.triumf.ca> <9602041608.AA19516@dxmint.cern.ch> <823481406snz@genesis.demon.co.uk>
- NNTP-Posting-Host: ftp.triumf.ca
- News-Software: VAX/VMS VNEWS 1.50
-
- In article <823481406snz@genesis.demon.co.uk>, fred@genesis.demon.co.uk writes...
- >In article <9602041608.AA19516@dxmint.cern.ch>
- > danpop@mail.cern.ch "Dan Pop" writes:
- >
- >>bennett@erich.triumf.ca (P.Bennett) writes:
- >>
- >>>You need to #include either (or both, if you wish) math.h or stdlib.h to get
- >>>the prototype for atof().
- >>
- >>Actually, I couldn't find any requirement that <math.h> contains a
- >>declaration for atof.
- >
- >Right - atof isn't defined in <math.h> nor is it reserved so an ANSI
- >implementation is prohibited from defining it in <math.h>
-
- A little Borland gotcha, I guess - My Borland C++ V. 2 manual indicates that
- both math.h and stdlib.h have the prototype.
-
- Looking at math.h, I find that atof() is there, but inside a #if !__STDC__
- block, so, if the compiler is set for Standard C, it won't be seen...
-
- Peter Bennett VE7CEI | Vessels shall be deemed to be in sight
- Internet: bennett@triumf.ca | of one another only when one can be
- Packet: ve7cei@ve7kit.#vanc.bc.ca | observed visually from the other
- TRIUMF, Vancouver, B.C., Canada | ColRegs 3(k)
- GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
-
-
-
-
-
-
-
-
-
-
-
-